PLATFORM_REWARD_SUB_TYPE_ENUM_DCT = {
    "system_recharge": {"name": "运营加币"},
    "agent": {"name": "代理奖励"},
    "coupon": {"name": "红包使用"},
    "campaign": {"name": "活动奖励"},
    "pay_bonus": {"name": "充值返利"}
}

PLATFORM_REWARD_THIRD_TYPE_ENUM_DCT = {
    "system_recharge": {"name": "系统充值"},
    "agent_return": {"name": "代理返点"},
    "pay_bonus": {"name": "充值返利"},
    "coupon_used": {"name": "红包使用"}
}


EVENT_CONFIG = {
    "event_id": "platform_reward",
    "event_name": "系统奖励",
    "values": {
        "_user_id": {
            "field_name": "用户ID",
            "value_type": "long",
            "display_priority": 1
        },
        "sub_type": {
            "field_name": "奖励种类",
            "value_type": "string",
            "enum": {
                "target_enum_dct": PLATFORM_REWARD_SUB_TYPE_ENUM_DCT
            },
            "display_priority": 2
        },
        "third_type": {
            "field_name": "奖励明目",
            "value_type": "string",
            "enum": {
                "target_enum_dct": PLATFORM_REWARD_THIRD_TYPE_ENUM_DCT
            },
            "display_priority": 3
        },
        "reward_amount": {
            "field_name": "奖励金额",
            "value_type": "float",
            "display_priority": 4
        },
        "can_withdraw": {
            "field_name": "可否提现",
            "value_type": "long",
            "required": False,
            "detail_invisible": True
        },
        "_event_time": {
            "field_name": "奖励/使用时间",
            "value_type": "long",
            "display_priority": 5
        }
    },
}